home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
c
/
sozobon
/
sozlib15.zoo
/
sozdistr
/
examples
/
world.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-02-15
|
386 b
|
18 lines
/* The inevitable hello world program...
*
* I found this one while reading news and modified it slightly
* in order to avoid the CR/LF problem.
*/
float o=0.075,h=1.5,T,r,O,l,I;
int x,L=80,s=3200;
void main()
{
for( ;s%L||(h-=o,T= -2),s;4 -(r=O*O)<(l=I*I)|++x==L &&\
printf("%.1s",(--s%L?(x<L ? --x%6:6):7)+"World! \n")&&\
(O=I=l=x=r=0,T+=o/2) )
O=I*2*O+h,I=l+T-r;
}